package com.jeeplus.modules.web.entity;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.modules.sys.entity.User;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 用户棋牌室房间Entity
 * @author liangbing
 * @version 2021-04-01
 */
public class WxUserRoomQrcode extends DataEntity<WxUserRoomQrcode> {

	private static final long serialVersionUID = 2L;

	@NotBlank(message = "用户不能为空")
	private String openid;			// openid

	@NotBlank(message = "房间二维码不能为空")
	private String roomQrcode;		// 棋牌室房间二维码
	private Date lastActivateDate;  // 上次激活时间

	public WxUserRoomQrcode() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}

	public WxUserRoomQrcode(String id){
		super(id);
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getRoomQrcode() {
		return roomQrcode;
	}

	public void setRoomQrcode(String roomQrcode) {
		this.roomQrcode = roomQrcode;
	}

	public Date getLastActivateDate() {
		return lastActivateDate;
	}

	public void setLastActivateDate(Date lastActivateDate) {
		this.lastActivateDate = lastActivateDate;
	}

	@Override
	public void preInsert() {
		super.preInsert();
	}

	@Override
	public void preUpdate() {
		super.preUpdate();
	}

	@Override
	public String getRemarks() {
		return super.getRemarks();
	}

	@Override
	public void setRemarks(String remarks) {
		super.setRemarks(remarks);
	}

	@Override
	public User getCreateBy() {
		return super.getCreateBy();
	}

	@Override
	public void setCreateBy(User createBy) {
		super.setCreateBy(createBy);
	}

	@Override
	public Date getCreateDate() {
		return super.getCreateDate();
	}

	@Override
	public void setCreateDate(Date createDate) {
		super.setCreateDate(createDate);
	}

	@Override
	public User getUpdateBy() {
		return super.getUpdateBy();
	}

	@Override
	public void setUpdateBy(User updateBy) {
		super.setUpdateBy(updateBy);
	}

	@Override
	public Date getUpdateDate() {
		return super.getUpdateDate();
	}

	@Override
	public void setUpdateDate(Date updateDate) {
		super.setUpdateDate(updateDate);
	}

	@Override
	public String getDelFlag() {
		return super.getDelFlag();
	}

	@Override
	public void setDelFlag(String delFlag) {
		super.setDelFlag(delFlag);
	}

	@Override
	public String toString() {
		return "WxUserRoomQrcode{" +
				"openid='" + openid + '\'' +
				", roomQrcode='" + roomQrcode + '\'' +
				'}';
	}
}
